package com.zengfa.task.api.model;

import java.time.LocalDateTime;
import java.util.List;

import com.zengfa.task.api.enums.JobStatus;
import com.zengfa.task.api.enums.JobType;

import lombok.Data;

@Data
public class JobDTO {

	/**
	 * 作业id
	 */
	private String jobId;
	
	/**
	 * 作业名称
	 */
	private String jobName;
	
	/**
	 * 作业类型，1单任务，2流程任务
	 */
	private JobType jobType;
	
	/**
	 * 作业分组
	 */
	private String jobGroup;
	
	/**
	 * 业务id
	 */
	private String bizId;
	
	/**
	 * 作业执行IP
	 */
	private String execIp;
	
	private LocalDateTime startTime;
	
	private LocalDateTime endTime;
	
	private JobStatus status;
	
	private String message;
	
	/**
	 * 最后同步时间
	 */
	private LocalDateTime lastSyncTime;
	
    private LocalDateTime createdDate;
	
	private String createdBy;
	
	private LocalDateTime updatedDate;
	
	private String updatedBy;
	
	List<JobNodeDTO> nodeList;
	
}
